<?php
$this->breadcrumbs = array(
	'Leaves'=>array('index'),
	$model->name,
);

$this->menu = array(
	array('label'=>'List Leave', 'url'=>array('index')),
	array('label'=>'Create Leave', 'url'=>array('create')),
	array('label'=>'Update Leave', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Leave', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete', 'id'=>$model->id), 'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Leave', 'url'=>array('admin')),
);
?>

<h1>Cancel Leave #<?php echo $model->id; ?></h1>

<div class="flash-notice round center">
	<div>Please confirm if you wish to cancel.</div>

	<div>
		<?php
		$htmlOptions = array(
			'submit'=>array('cancel', 'id'=>$model->id),
			'params'=>array('confirm'=>1)
		);
		echo CHtml::link('Yes', '#', $htmlOptions);
		?> /
		<?php
		echo CHtml::link('No', array('view', 'id'=>$model->id));
		?>
	</div>
</div>

<?php
$data = array(
	'data'=>$model,
	'attributes'=>array(
		'employee.name',
		'name',
		array(
			'label'=>$model->getAttributeLabel('start'),
			'name'=>'unixStart',
			'type'=>'date',
		),
		array(
			'name'=>'debit',
			'type'=>'number',
		),
		array(
			'name'=>'balance',
			'type'=>'number',
		),
		'status',
		array(
			'name'=>'note',
			'type'=>'ntext',
		),
	),
);
$this->widget('zii.widgets.CDetailView', $data);
?>
